﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CourierManager
{
    public class Manager : Employee, ISalary
    {
        public int NewClientsCount { get; set; }
 
        public Manager(string firstName, string lastName, string address, ulong idNumber, ulong phone,decimal salary)
            : base(firstName, lastName, address, idNumber, phone,salary)
        {
            
        }

        public decimal CalculateSalary()
        {
            decimal salary = this.Salary;
            if (NewClientsCount >= 20)
            {
                salary += 500;
            }

            return salary;
        }
    }
}
